<template>
  <div >
    <router-view></router-view>
    
  </div>
</template>

<script>

export default {
    data(){
        return{

        }
    },
    components:{

    },
    created(){
      if (sessionStorage.getItem('routeNow')!==null){
        this.$router.push({
          path:sessionStorage.getItem('routeNow')
        });
      }else {
        this.$router.push('/');
      }

  },
  watch:{
    $route(newVal,oldVal){
        sessionStorage.setItem('routeNow',this.$route.path);
    }
  }

}
</script>

<style  scoped>


</style>>

</style>